<div class="modal-container" #container>
  <button nz-button [nzType]="'primary'" (click)="isVisibleDragDrop = !isVisibleDragDrop"><span>显示可拖拽Modal</span></button>
  <button nz-button [nzType]="'primary'" (click)="isVisible = true"><span>显示不可拖拽Modal</span></button>
  <nz-modal nzNoAnimation [nzGetContainer]="container" nzMask="false" nzClassName="modal-dragdrop"
    (nzAfterOpen)="setModelDragDrop('modal-dragdrop')" [(nzVisible)]="isVisibleDragDrop" nzTitle="可拖拽的Modal"
    [nzZIndex]="1002" (nzOnCancel)="isVisibleDragDrop = false" [nzFooter]="null">
    <ng-container *nzModalContent>
      <p>正文内容</p>
      <p>正文内容</p>
      <p>正文内容</p>
    </ng-container>
  </nz-modal>
  <nz-modal nzMask="true" [(nzVisible)]="isVisible" nzTitle="不可拖拽的Modal" (nzOnCancel)="isVisible = false" [nzFooter]="null">
    <ng-container *nzModalContent>
      <p>正文内容</p>
      <p>正文内容</p>
      <p>正文内容</p>
    </ng-container>
  </nz-modal>
</div>